﻿@using Coralcode.Base
@using CoralNode.MvcClient.Contexts
@{
    Layout = null;
    long prototypeId = Model["prototypeId"];
    var setting = GlossaryUtil.GetSettting("Site_SearchCongfig_" + CoralNodeContext.Current.Workbench.Id);
}
<div class="content_tab extra_normal">
    <div class="tablist extra_normal">
        <a @Html.CurrentTag((string)ViewData["curr"], "basic") href="/m/prototype/editPrototype/@prototypeId">
            基本信息</a>
        <a @Html.CurrentTag((string)ViewData["curr"], "field") href="/m/prototype/settingField?prototypeId=@prototypeId">
            字段管理</a>
        <a @Html.CurrentTag((string)ViewData["curr"], "fieldCustom") href="/m/prototype/listFieldCustom?prototypeId=@prototypeId">
            自定义列表管理</a>
        <a @Html.CurrentTag((string)ViewData["curr"], "category") href="/m/prototype/listCategory?prototypeId=@prototypeId">
            分类管理</a>
        <a @Html.CurrentTag((string)ViewData["curr"], "tag") href="/m/prototype/listtag?prototypeId=@prototypeId">
            标签管理</a>
        @if (setting != null && Newtonsoft.Json.JsonConvert.DeserializeObject<long[]>(setting.Value).Contains(prototypeId)) {
            <a @Html.CurrentTag((string)ViewData["curr"], "indexaction") href="/m/prototype/setFieldIndexAction?prototypeId=@prototypeId">
                索引管理</a>
        }
    </div>
    <a href="/m/prototype" class="ico ico_back btn f_r mt_1"></a>
</div>
